package com.ztc.ZtcWalletLog.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import com.aqgj.util.BaseEntity;

import java.math.BigDecimal;

@Entity
@Table(name = "ztc_wallet_log")
public class ZtcWalletLog implements BaseEntity{

    private String id;//

    private String fkUserId;//用户ID

    private Integer type;//类型:1-购票;2-退票;3-充值;4-提现;5-一级返利收入;6-二级返利收入;7-三级返利收入;8-退票违约金;9-退票违约金返还;10-一级返利退票支出;11-二级返利退票支出;12-三级返利退票支出;13:提现失败入账;14-顺风车收入;15-顺风车退票支出;16-快递费支出;17-快递退款收入;18-快递费收入;19-代收货款入账

    private java.math.BigDecimal money;//交易金额

    private java.math.BigDecimal afterBalance;//本次交易后余额

    private String fkOrderId;//业务ID(订单ID 提现ID)

    private String comment;//备注

    private Long addTime;//添加时间

    public void setId(String value){
        this.id = value;
    }
    public void setFkUserId(String value){
        this.fkUserId = value;
    }
    public void setType(Integer value){
        this.type = value;
    }
    public void setMoney(java.math.BigDecimal value){
        this.money = value;
    }
    public void setFkOrderId(String value){
        this.fkOrderId = value;
    }
    public void setComment(String value){
        this.comment = value;
    }
    public void setAddTime(Long value){
        this.addTime = value;
    }
    public void setAfterBalance(BigDecimal afterBalance) {
        this.afterBalance = afterBalance;
    }

    @Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @Column(name ="id",unique=true,nullable=false,insertable=true,updatable=true,length=32)
    public String getId(){
        return this.id;
    }
    @Column(name ="fk_user_id",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getFkUserId(){
        return this.fkUserId;
    }
    @Column(name ="type",unique=false,nullable=true,insertable=true,updatable=true,length=3)
    public Integer getType(){
        return this.type;
    }
    @Column(name ="money",unique=false,nullable=true,insertable=true,updatable=true,length=10)
    public java.math.BigDecimal getMoney(){
        return this.money;
    }
    @Column(name ="fk_order_id",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getFkOrderId(){
        return this.fkOrderId;
    }
    @Column(name ="comment",unique=false,nullable=true,insertable=true,updatable=true,length=65535)
    public String getComment(){
        return this.comment;
    }
    @Column(name ="add_time",unique=false,nullable=true,insertable=true,updatable=true,length=0)
    public Long getAddTime(){
        return this.addTime;
    }
    @Column(name ="after_balance",unique=false,nullable=true,insertable=true,updatable=true,length=10)
    public BigDecimal getAfterBalance() {
        return afterBalance;
    }
}
